home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
DO1002.ARJ
/
ERASE.SCR
< prev
next >
Wrap
Text File
|
1991-12-03
|
1KB
|
33 lines
.pg wi full clr cy
COMMAND NAME»gray«: »%t« EraseFile »ye«
/ERASE {Filename}
/cw
»ma«Erase (»ye«delete»ma«) a file from the disk.»#«
This command is the equivalent of the DOS »cy«DEL»#« command.
However, unlike the DEL command, only »ma«individual files can
be deleted»#« from the disk. Variables in »cy«{Filename}»#« are
expanded.
If the command is successful, »%t«DO»#« branches to "»gr«:ERASEOK»#«"
otherwise it branches to "»re«:ERASEERROR»#«".
If the "»ye«N»#«" token is included, the command will »+re«NOT»#« branch to the
labels, but will continue on the next line of the script regardless
of the outcome.
.pg clr
We'll use the »%t«/ERASE»#« command to delete »cy«EDITOR.TMP»#« that you
used for editing (»%t«/EDIT»#«).
|/ERASE EDITOR.TMP
:ERASEERROR
.bell ye
OOPS! There was some type of error deleting »ma«EDITOR.TMP»ye«!»#«
/GOTO EraseEnd
:ERASEOK
»ye«EDITOR.TMP»#« has been successfully deleted.
:ERASEEND
/ENDEXEC CLEAR